package cn.zkf.bean;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring
 * @ClassName UserConfig
 * @description:
 * @author: zhangkefei
 * @create: 2021-04-07 13:54
 * @Version 1.0
 **/
@Configuration
@ComponentScan
public class UserConfig {

	public static void main(String[] args) {
		ApplicationContext ctx = new AnnotationConfigApplicationContext(UserConfig.class);

		ctx.getBean("user");
	}

}
